<%= image_tag "fff.gif", :align => 'center' %>
<h1>Listing flashcards</h1>

<table>
  <tr>
    <th>Answer</th>
    <th>Question</th>
    <th>Set</th>
  </tr>

<% for flashcard in @flashcards %>
  <tr>
    <td><%=h flashcard.answer %></td>
    <td><%=h flashcard.question %></td>
    <td><%=h flashcard.set %></td>
    <td><%= link_to 'Show', flashcard %></td>
    <td><%= link_to 'Edit', edit_flashcard_path(flashcard) %></td>
    <td><%= link_to 'Destroy', flashcard, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New flashcard', new_flashcard_path %>
